package com.interview.tech.dao;

import java.util.List;

import com.interview.tech.model.Question;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

public class QuestionDAOImpl extends SqlMapClientDaoSupport implements
		QuestionDao {

	@Override
	public List<Question> getAllQuestions() {
		System.out.println("********************");
		System.out.println("********************");
		System.out.println("********************");
		System.out.println("Caling DAO");
		System.out.println("********************");
		System.out.println("********************");
		System.out.println("********************");
		System.out.println("********************");
		
		
		// TODO Auto-generated method stub
		return (List<Question>)getSqlMapClientTemplate().queryForList("getAllQuestions");
	}

}
